package com.lowca.news.dao.impl;

import org.springframework.stereotype.Repository;
import org.springframework.util.Assert;

import com.lowca.news.dao.RoleDao;
import com.lowca.news.entity.Role;

@Repository
public class RoleDaoImpl extends BaseDaoImpl<Role, Long> implements RoleDao {

	@Override
	public Role findByName(String name) {
		Assert.hasText(name, "name is required");
		return super.findUniqueByProperty("name", name);
	}

}
